<?php 
	use_stylesheet('categorieOuMenu.css');
	slot('title','Commande '.$idCommandeClient);
	$url = '<a href="'.url_for('commandeClient/show?id_commande_client='.$idCommandeClient).'"><img src="/ProjetBar/web/images/retour.png" width="50"/></a>';
	slot('retour',$url);
?>

<fieldset id="categories">
<legend>Catégorie</legend>
	<table>
		<tr>
		<?php 
		$nbCat = 0;
		foreach($categories as $categorie): 
		?>
			<td><a href="<?php echo url_for('produitEnVente/produitParCategorie?id_categorie='.$categorie['id_categorie'].'&id_commande_client='.$idCommandeClient); ?>"><?php echo $categorie['libelle_categorie']; ?></a></td>
		<?php $nbCat++; if($nbCat % 4 == 0) { ?>
		</tr><tr>
		<?php } ?>
		<?php endforeach; ?>	
	</table>
</fieldset>

<fieldset id="menus">
<legend>Menus</legend>
	<table>
		<?php foreach($menus as $menu): ?>
		<tr>
			<td><a href="<?php echo url_for('formule/show?id_menu='.$menu['id_menu'].'&id_commande_client='.$idCommandeClient); ?>"><?php echo $menu['libelle_menu']; ?></a></td>
		</tr>
		<?php endforeach; ?>
	</table>
</fieldset>